//
//  UIColor+Extension.swift
//  SinaWeiBo20
//
//  Created by tarena on 16/3/25.
//  Copyright © 2016年 tarena. All rights reserved.
//

import UIKit
extension UIColor {
    
    //随机一个颜色返回
    class func randomColor() -> UIColor {
        let red = CGFloat(random() % 256) / 255.0
        let green = CGFloat(random() % 256) / 255.0
        let blue = CGFloat(random() % 256) / 255.0
        return UIColor(red: red, green: green, blue: blue, alpha: 1.0)
    }
    
    
}